﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ViewMaker.Core
{
    /// <summary>
    /// ViewLayout永続化サービスインタフェース
    /// </summary>
    public interface IViewLayoutPersistenceService
    {
        string GetDefaultLayoutName(Type vmType);
        void Save(ViewLayoutItem layout, string name);
        ViewLayoutItem Load(string name);
        void Delete(string name);
        bool Exists(string name);
        List<string> ListData();
        ViewLayoutItem Deserialize(Stream st);
        void Serialize(ViewLayoutItem layout, Stream st);
    }
}
